#include <iostream>
#include <memory>
#include "logger_interface.hpp"

class ConsoleLogger : public Logger
{
public:
    void log(const std::string &message) override
    {
        std::cout << message << std::endl;
    }
};

// 导出声明（示例为Windows）
#ifdef _WIN32
_declspec(dllexport) std::shared_ptr<Logger> createLogger()
{
    return std::make_shared<ConsoleLogger>();
}
#else
std::shared_ptr<Logger> createLogger()
{
    return std::make_shared<ConsoleLogger>();
}
#endif